package com.bll.imple.userAction;

import java.io.UnsupportedEncodingException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.bean.UserBean;
import com.bll.Action;
import com.dao.UserDao;

public class HLoginAction implements Action{

	public String execute(HttpServletRequest request,
			HttpServletResponse response) {
		
		String tel=request.getParameter("tel");
		String password=request.getParameter("password");
		HttpSession session=request.getSession();
		
		UserDao dao=new UserDao();
		UserBean bean=null;
		bean=dao.loginTel(tel, password);
		if(bean!=null){
			return "default.jsp";
		}else{
			return "htlogin.jsp";
		}
	
	}

}
